import request from '@/utils/request'
/*   企业管理 */
export const getenterpriseList = (params) => {
  return request.get('/park/enterprise',{
    params
  })
}

/*  添加企业 */
export const getIndustryListAPI = () =>{
   return request.get('/park/industry')
}

/**
 * 上传合同
 * @returns
 */
export function uploadAPI(data) {
  return request({
    url: '/upload',
    method: 'POST',
    data
  })
}


/**
 * 创建公司
 * @param {*} data
 * @returns
 */
export function createEnterpriseAPI(data) {
  return request({
    url: '/park/enterprise',
    method: 'POST',
    data
  })
}


/*   查看企业 */
export const checkListAPI = (id) => {
  return request.get(`/park/enterprise/${id}`)
}



/*  编辑 企业 */  // !  put  方法必须省略
export function recomposeAPI(data) {
  return request({
    url: '/park/enterprise',
    method: 'PUT',
    data
  })
}




/*  删除企业 */
export const delListAPI = (id) =>{
   return request.delete(`/park/enterprise/${id}`,{
    id
   })
}